import { SearchableType, Searcher } from "../types";
import { buildURL } from "../url_builder";

export class Malwares implements Searcher {
  public baseURL: string;
  public name: string;
  public supportedTypes: SearchableType[] = ["hash"];

  public constructor() {
    this.baseURL = "https://www.malwares.com";
    this.name = "Malwares";
  }

  public searchByHash(query: string): string {
    return buildURL(this.baseURL, "/report/file", { hash: query });
  }
}
